<?php
namespace Products;

abstract class Cards  // íÿìà ñìèñúë äà íàñëåäÿâà product class
{
	protected $annualFee;
	protected $type;
	
	protected $name;
	protected $amount;
	
	public function __construct($name, $type) // äîáàâèõ è name çà äà ñå çíàå çà êîãî ñå ñúçäàâà
	{
		$this->setType($type);
		$this->setName($name);
	}
	
	public function getAnnualFee()
	{
		return $this->annualFee;
	}
	
	public function getType()
	{
		return $this->type;
	}
	
	public function getName()
	{
		return $this->name;
	}
	
	public function getAmount()
	{
		return $this->amount;
	}
	
	public abstract function setAnnualFee();	
	public abstract function setType();
	public abstract function setName();
	public abstract function setAmount();
	
	public function showInfo()
	{
		$this->getName();
		$this->getAmount();
		$this->getType();
		$this->getAnnualFee();
	}
}
?>